package com.ga.wact.enums;

/**
 * Created by 幻夜~星辰 on 2019/1/26.
 */
public enum CommonCode {

    HAND_SUCCESS("0","SUCCESS"),//操作成功
    INTERNAL_ERROR("1","程序内部错误"),//程序错误
    PARAM_ERROR("2","参数错误"),//参数错误
    URL_NOT_EXISTS("3","URL不存在"),//url不存在
    UNLOGIN_ERROR("4","登录过期"),//登录过期
    AUTH_FORBIDDEN("5","权限禁止访问"),//
    SERVICE_ERROR("6","服务繁忙，请稍后再试"),
    MANAGER_INFO_ERROR("7","管理员信息错误"),
    REQUEST_METHOD_ERROR("8","请求方法错误"),
    PARAM_LOSS_ERROR("9","参数缺失"),//参数缺失，为null的情况
    ;

    CommonCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    private String code;

    private String message;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
